export default function (params) {
    return {
        tooltip: {
            trigger: 'item'
        },
        color: ['#FE8463', 'red', 'green', 'yellow'],
        title: {
            text: '在校生年龄分布',
            bottom: 10,
            left: -5,
            textStyle: {
                fontSize: 20,
                color: "#bcdcff"
            },
        },
        legend: {
            top: '5%',
            left: 'center',
            textStyle: {
                fontSize: 15,
                color: "#bcdcff"
            },
        },
        series: [{
            name: '在校生年龄分布',
            type: 'pie',
            radius: ['40%', '70%'],
            avoidLabelOverlap: false,
            textStyle: {
                color: '#bcdcff',
            },
            itemStyle: {
                borderRadius: 10,
                borderColor: '#fff',
                borderWidth: 2
            },
            label: {
                show: false,
                position: 'center'
            },
            emphasis: {
                label: {
                    show: false,
                }
            },
            labelLine: {
                show: false
            },
            data: params
        }]
    }
};